#include <iostream>
using namespace std;

struct Biology{
    bool living;
};

struct Animal : Biology{
    bool movable;
    void findFood();
};

struct Plant : Biology{
    bool growable;
    void grow();
};

struct Human : Animal{
    bool intelligent;
    void think();
    void work();
    void sleep();
};

struct Beast : Animal{
    void sleep();
};

struct Girl : Human{
    private:
        int age;
        int weight;
    public:
        void print(){
            age = 18;
            weight = 45;
            cout << "I'm girl,I'm " << age << " years old" << endl;
            cout << "My weight is " << weight << " kg" << endl;
        }
};
struct Boy : Human{
    private:
        int height;
        int salayr;
    public:
        int age;
        int weight;

        void print(){
            height = 180;
            salayr = 10000;

            age = 20;
            weight = 70;
            cout << "I'm boy,my height is " << height << " cm" << endl;
            cout << "My salayr is " << salayr << " yuan" << endl;
        }
};

int main(int argc, char** argv) {

    Girl girl;
    girl.print();
    // girl.age = 18;
    Boy boy;
    boy.print();
    boy.age = 20;

    return 0;
}
